package com.hippo.core.ui.compose.web

import androidx.navigation.NavController
import com.hippo.core.core.manager.AppStore
import com.hippo.core.ui.navigation.AppRoute

object WebHandler {

    fun openWeb(navController: NavController,url: String,title: String = ""){
        AppStore.save("web_url",url)
        AppStore.save("web_title",title)
        navController.navigate(AppRoute.WebScreen)
    }
}